package com.dces.demo.executor.controller;


import com.xdo.dataimport.base.ImportBase;
import com.xdo.springboot.BaseController;
import com.xxl.job.core.biz.model.ReturnT;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.web.bind.annotation.*;

/**
 * @author : hjzhuang
 * @date :   3:29 下午
 */
@RestController
@EnableAutoConfiguration
@RequestMapping("/import")
@Api(tags = "表体导入")
public class ImportHandlerController extends BaseController {
    @Autowired
    private ImportBase importBase;

    @PostMapping("/listImport")
    @ResponseBody
    ReturnT<String> dcrImg() throws Exception {
        ReturnT<String> returnT = importBase.execute("{systemCode:[zhj_test],taskCode:[BILL_HEAD],tradeCode:[8888886666]}");
        return returnT;
    }

}
